Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: pressing tab in yazi jumps to dir of next open split #232

Merged
merged 2 commits into from
Jul 21, 2024

Conversation

mikavilpas
Copy link
Owner

@mikavilpas mikavilpas commented Jul 21, 2024

This feature is only supported for the latest yazi version. For now,
you have to compile yazi from source to be able to use it. See the
readme for instructions on how to do this.
cd-to-other-buffer-directory.mov

If you have files open in split windows in Neovim, and have started yazi, you can now press the tab key to make yazi jump to the directory of the next open buffer. This is useful when you have multiple files open in different directories and want to quickly jump between them.

Right now this has the following limitation: it can only jump to the directory of the next open buffer, but not necessarily focus the buffer in yazi. This is because yazi doesn't have a built-in way to jump to a specific file, only a directory. This is something that might be improved in the future.

    This feature is only supported for the latest yazi version. For now,
    you have to compile yazi from source to be able to use it. See the
    readme for instructions on how to do this.

If you have files open in split windows in Neovim, and have started
yazi, you can now press the `tab` key to make yazi jump to the directory
of the next open buffer. This is useful when you have multiple files
open in different directories and want to quickly jump between them.

Right now this has the following limitation: it can only jump to the
directory of the next open buffer, but not necessarily focus the buffer
in yazi. This is because yazi doesn't have a built-in way to jump to a
specific file, only a directory. This is something that might be
improved in the future.
@mikavilpas mikavilpas force-pushed the cd-to-other-buffer-directory branch from 2d3d6f7 to 89ed037 Compare July 21, 2024 08:54
@mikavilpas mikavilpas merged commit 3cbc40c into main Jul 21, 2024
14 checks passed
@mikavilpas mikavilpas deleted the cd-to-other-buffer-directory branch July 21, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant